﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TodoList.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ToDo List by Paula Cris</title>
    <style type="text/css">
        .style1
        {
            font-size: xx-large;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <span class="style1">ToDo List</span><br />
        <br />
        Nova Tarefa:
        <asp:TextBox ID="txtNovaTarefa" runat="server"></asp:TextBox>
        &nbsp;<asp:Button ID="btnInserirTarefa" runat="server" Text="Inserir Tarefa" 
            onclick="btnInserirTarefa_Click" />
        <br />
        <br />
        <table>
            <tr>
                <th>
                    Tarefas
                </th>
                <th>
                    Feito?
                </th>
            </tr>
            <asp:Repeater ID="rptTodo" runat="server" 
                onitemdatabound="rptTodo_ItemDataBound">
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Label ID="lblTarefa" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td>
                            <asp:CheckBox ID="chkTarefa" runat="server" />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    <p>
        <asp:Label ID="lblErro" runat="server" style="color: #CC0000"></asp:Label>
    </p>
    </form>
</body>
</html>
